package domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: 爱学Java 不想秃头的 KK
 * @date: 2023/7/7 10:45
 * @version: 1.0
 * @Created with IntelliJ IDEA.
 * @Description:
 */
public class ArticleDetail<T> implements Serializable {
    private int rid; //文章在数据库自增id
    private String title; //文章名
    private String username;//作者
    private String createTime;
    private String modifyTime;
    private int browserNum; //浏览量
    private int favour; //点赞量
    private String cname; //分类

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public int getBrowserNum() {
        return browserNum;
    }

    public void setBrowserNum(int browserNum) {
        this.browserNum = browserNum;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public int getFavour() {
        return favour;
    }

    public void setFavour(int favour) {
        this.favour = favour;
    }

    @Override
    public String toString() {
        return "ArticleDetail{" +
                "rid=" + rid +
                ", title='" + title + '\'' +
                ", username='" + username + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", browserNum=" + browserNum +
                ", favour=" + favour +
                ", cname='" + cname + '\'' +
                '}';
    }
}
